<%@ page language="java" import="com.alibaba.fastjson.JSONObject" pageEncoding="UTF-8" %>
<%@ page import="weaver.conn.RecordSet" %>
<%@ page import="weaver.general.Util" %>
<%--获取传阅数量--%>
<%
    RecordSet rs = new RecordSet();
    JSONObject jsonData = new JSONObject();
    String requestid = Util.null2String( request.getParameter( "requestid" ) );
    String workflowid = Util.null2String( request.getParameter( "workflowid" ) );
    String userid = Util.null2String( request.getParameter( "userid" ) );
    String sql = " select count(id) from workflow_currentoperator where  requestid=? \n" +
            " and workflowid=? and userid=? and isremark=11 and preisremark=11\n";
    rs.executeQuery( sql,requestid,workflowid,userid );
    rs.next();
    int counts = Util.getIntValue( rs.getString( 1 ) );
    jsonData.put( "counts", counts );
    out.print( jsonData.toJSONString() );

%>
